package com.ruoyi.siyun.service.impl;

import java.util.Date;
import java.util.List;

import com.ruoyi.siyun.domain.SyMicrocircle;
import com.ruoyi.siyun.mapper.SyMicrocircleMapper;
import com.ruoyi.siyun.service.ISyMicrocircleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 微圈Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-23
 */
@Service
public class SyMicrocircleServiceImpl implements ISyMicrocircleService
{
    @Autowired
    private SyMicrocircleMapper syMicrocircleMapper;

    /**
     * 查询微圈
     * 
     * @param id 微圈主键
     * @return 微圈
     */
    @Override
    public SyMicrocircle selectSyMicrocircleById(Long id)
    {
        return syMicrocircleMapper.selectSyMicrocircleById(id);
    }

    /**
     * 查询微圈列表
     * 
     * @param syMicrocircle 微圈
     * @return 微圈
     */
    @Override
    public List<SyMicrocircle> selectSyMicrocircleList(SyMicrocircle syMicrocircle)
    {
        return syMicrocircleMapper.selectSyMicrocircleList(syMicrocircle);
    }

    /**
     * 新增微圈
     * 
     * @param syMicrocircle 微圈
     * @return 结果
     */
    @Override
    public int insertSyMicrocircle(SyMicrocircle syMicrocircle)
    {
        return syMicrocircleMapper.insertSyMicrocircle(syMicrocircle);
    }

    /**
     * 修改微圈
     * 
     * @param syMicrocircle 微圈
     * @return 结果
     */
    @Override
    public int updateSyMicrocircle(SyMicrocircle syMicrocircle)
    {
        return syMicrocircleMapper.updateSyMicrocircle(syMicrocircle);
    }

    /**
     * 批量删除微圈
     * 
     * @param ids 需要删除的微圈主键
     * @return 结果
     */
    @Override
    public int deleteSyMicrocircleByIds(Long[] ids)
    {
        return syMicrocircleMapper.deleteSyMicrocircleByIds(ids);
    }

    /**
     * 删除微圈信息
     * 
     * @param id 微圈主键
     * @return 结果
     */
    @Override
    public int deleteSyMicrocircleById(Long id)
    {
        return syMicrocircleMapper.deleteSyMicrocircleById(id);
    }
}
